package org.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.entity.User;
import org.example.exception.AccountExitException;
import org.example.exception.PermissionsDenyException;
import org.example.vo.RegisterVo;
import org.example.vo.UserVO;

public interface UserService extends IService<User> {

    User getUserByAccount(String account);

    void createUser(RegisterVo registerVo, int i) throws AccountExitException;
    void changePasswordAndSave(User user);

    UserVO updateUser(User target) throws Exception, PermissionsDenyException;
}
